package com.muyu.day3zy.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName ProductInfo
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/24 9:23
 */
public class ProductInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 商品id */
    @Excel(name = "商品id", cellType = Excel.ColumnType.NUMERIC)
    private Integer id;

    /** 商品品牌id */
    @Excel(name = "商品品牌id")
    private Integer brandId;

    /** 商品分类id */
    @Excel(name = "商品分类id")
    private Integer typeId;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String productPic;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 排序 */
    @Excel(name = "排序")
    private Integer productSort;

    /** sku库存 */
    @Excel(name = "sku库存")
    private Integer skuNum;

    /** 销量 */
    @Excel(name = "销量")
    private Integer sales;

    /** 审核状态 */
    @Excel(name = "审核状态")
    private Integer status;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getBrandId() {
        return brandId;
    }

    public void setBrandId(Integer brandId) {
        this.brandId = brandId;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getProductPic() {
        return productPic;
    }

    public void setProductPic(String productPic) {
        this.productPic = productPic;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Integer getProductSort() {
        return productSort;
    }

    public void setProductSort(Integer productSort) {
        this.productSort = productSort;
    }

    public Integer getSkuNum() {
        return skuNum;
    }

    public void setSkuNum(Integer skuNum) {
        this.skuNum = skuNum;
    }

    public Integer getSales() {
        return sales;
    }

    public void setSales(Integer sales) {
        this.sales = sales;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("brandId", getBrandId())
                .append("typeId", getTypeId())
                .append("productPic", getProductPic())
                .append("productName", getProductName())
                .append("price", getPrice())
                .append("productSort", getProductSort())
                .append("skuNum", getSkuNum())
                .append("sales", getSales())
                .append("status", getStatus())
                .toString();
    }
}
